.class Lcom/netease/newsreader/view/ImageViewer$1;
.super Ljava/lang/Object;
.source "ImageViewer.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/view/ImageViewer;->onUp()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/view/ImageViewer;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/view/ImageViewer;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/view/ImageViewer$1;->this$0:Lcom/netease/newsreader/view/ImageViewer;

    .line 395
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 3

    .prologue
    .line 398
    iget-object v1, p0, Lcom/netease/newsreader/view/ImageViewer$1;->this$0:Lcom/netease/newsreader/view/ImageViewer;

    invoke-static {v1}, Lcom/netease/newsreader/view/ImageViewer;->access$0(Lcom/netease/newsreader/view/ImageViewer;)Landroid/widget/Scroller;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Scroller;->computeScrollOffset()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 399
    iget-object v1, p0, Lcom/netease/newsreader/view/ImageViewer$1;->this$0:Lcom/netease/newsreader/view/ImageViewer;

    invoke-static {v1}, Lcom/netease/newsreader/view/ImageViewer;->access$0(Lcom/netease/newsreader/view/ImageViewer;)Landroid/widget/Scroller;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Scroller;->getCurrY()I

    move-result v1

    iget-object v2, p0, Lcom/netease/newsreader/view/ImageViewer$1;->this$0:Lcom/netease/newsreader/view/ImageViewer;

    invoke-static {v2}, Lcom/netease/newsreader/view/ImageViewer;->access$1(Lcom/netease/newsreader/view/ImageViewer;)I

    move-result v2

    sub-int v0, v1, v2

    .line 400
    .local v0, trans:I
    iget-object v1, p0, Lcom/netease/newsreader/view/ImageViewer$1;->this$0:Lcom/netease/newsreader/view/ImageViewer;

    invoke-static {v1, v0}, Lcom/netease/newsreader/view/ImageViewer;->access$2(Lcom/netease/newsreader/view/ImageViewer;I)V

    .line 401
    iget-object v1, p0, Lcom/netease/newsreader/view/ImageViewer$1;->this$0:Lcom/netease/newsreader/view/ImageViewer;

    invoke-static {v1}, Lcom/netease/newsreader/view/ImageViewer;->access$1(Lcom/netease/newsreader/view/ImageViewer;)I

    move-result v1

    iget-object v2, p0, Lcom/netease/newsreader/view/ImageViewer$1;->this$0:Lcom/netease/newsreader/view/ImageViewer;

    invoke-static {v2}, Lcom/netease/newsreader/view/ImageViewer;->access$0(Lcom/netease/newsreader/view/ImageViewer;)Landroid/widget/Scroller;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Scroller;->getFinalY()I

    move-result v2

    if-eq v1, v2, :cond_1

    .line 402
    iget-object v1, p0, Lcom/netease/newsreader/view/ImageViewer$1;->this$0:Lcom/netease/newsreader/view/ImageViewer;

    invoke-virtual {v1, p0}, Lcom/netease/newsreader/view/ImageViewer;->post(Ljava/lang/Runnable;)Z

    .line 407
    .end local v0           #trans:I
    :cond_0
    :goto_0
    return-void

    .line 404
    .restart local v0       #trans:I
    :cond_1
    iget-object v1, p0, Lcom/netease/newsreader/view/ImageViewer$1;->this$0:Lcom/netease/newsreader/view/ImageViewer;

    invoke-virtual {v1}, Lcom/netease/newsreader/view/ImageViewer;->showNext()V

    goto :goto_0
.end method
